import { Tag } from '@/components/eai-design/tag';

// 将 tagRender 函数移到组件外部
export const TagRender = (tagProps: any) => {
  // eslint-disable-next-line unused-imports/no-unused-vars-ts, @typescript-eslint/no-unused-vars
  const { label, closable, onClose, ...rest } = tagProps;
  return (
    <Tag color="warning" {...rest}>
      {label}
    </Tag>
  );
};
